import App from './App'
import { aes_encrypt, aes_decrypt } from '@/store/aes_endecrypt.js';
Vue.prototype.aes_encrypt = aes_encrypt;
Vue.prototype.aes_decrypt = aes_decrypt;
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
// 引入全局 uview 框架
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
let vuexStore = require("@/store/$u.mixin.js");
Vue.mixin(vuexStore);

import store from '@/store';
const app = new Vue({
  store,
  ...App
})
// 引入请求封装，将app参数传递到配置中
require('config/request.js')(app)
// 自定义API集中管理引入部分
import utils from '@/config/utils.js'
Vue.use(utils, app)

app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif